package com.free.common.core.constant;

/**
 * 缓存常量信息
 *
 * @author free
 */
public class RedisNodeCacheConstants {

    /**
     * 放入不需要展示的题目ID的key
     */
    private static final String NOT_SHOW_AGAIN_SET = "not:show:again:set";

    /**
     * 放入需要弹出的key
     *
     * @return
     */

    private static final String SHOW_AGAIN_RANDOM_LIST = "show:again:random:list";
    private static final String RANDOM_CLASSIFY_IDS = "random:%s:ids";


    public static String getNotShowAgainSet() {
        return NOT_SHOW_AGAIN_SET;
    }

    public static String getShowAgainRandomList(String compilationId) {
        return SHOW_AGAIN_RANDOM_LIST + ":" + compilationId;
    }

    public static String getRandomClassifyIds(String classify) {
        return String.format(RANDOM_CLASSIFY_IDS, classify);
    }
}
